//
//  HWHomeTableFooter.swift
//  HWanGame
//
//  Created by 王昌健 on 2022/5/18.
//  Copyright © 2022 94Wan. All rights reserved.
//

import UIKit

class HWHomeTableFooter: UITableViewHeaderFooterView {
    class func headerOrFooterWithTableView(tableView:UITableView) -> (HWHomeTableFooter) {
        let reUse:String = "HWHomeTableFooter"
        var headerOrFooter = tableView.dequeueReusableHeaderFooterView(withIdentifier: reUse)
        
        if headerOrFooter == nil {
            headerOrFooter = HWHomeTableFooter.init(reuseIdentifier: reUse)
        }
        
        return headerOrFooter as! HWHomeTableFooter
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        initUI()
        initFrame()
    }
    
    
    func initUI() -> Void {
        
        backgroundView = UIView()
        contentView.backgroundColor = .colorWithHexString(hexString: "#FFFFFF")
        
        
    }
    
    func initFrame() -> Void {
        
    }
    

}
